package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.Brand;
import com.atguigu.spzx.model.entity.system.Category;
import com.atguigu.spzx.model.entity.system.CategoryBrand;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> findByParentId(Long parentId);

    List<Category> selectAll();

    void batchInsert(List<Category> categories);

    List<Brand> findBrandByCategory(Long categoryId);



}
